package com.example.dao;

import com.example.entity.Article;

import org.apache.ibatis.annotations.Select;

public interface ArticleMapper2 {
        // 用注解方式 不通过mapper.xml
        @Select("select * from article where id=#{id}")
        Article getArticleById(int id);
}
